package edu.spec.wyn.week09.class2.homework1;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        Mater tom=new Mater();
        List l=new ArrayList();

        l.add(new Cat("大黑", Collections.singletonList("喵"),Collections.singletonList("妙鲜包")));
        l.add(new Cat("小黑", Collections.singletonList("喵"),Collections.singletonList("妙鲜包")));

     /*  l.add(new Dog("金毛", Collections.singletonList("汪"),Collections.singletonList("妙鲜包")));
       l.add(new Dog("拉布拉多", Collections.singletonList("敖"),Collections.singletonList("妙鲜包")));
       l.add(new Dog("吉娃娃", Collections.singletonList("汪汪"),Collections.singletonList("妙鲜包")));
       l.add(new Dog("萨摩耶", Collections.singletonList("嗷嗷"),Collections.singletonList("妙鲜包")));*/

        for(int i=0;i<l.size();i++) {
            Cat cat = (Cat) l.get(i);
            System.out.println(cat.cry());
        }
       /* for(int j=0;j<l.size();j++){
            Dog d= (Dog)l.get(j);
            System.out.println(d.cry());
        }*/
    }

}
